<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Calculatrice polonais inversé LO21:  Fichier source de /home/yuntux/UTC/GI02/LO21/projet/projet_propre/calculatrice.h</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Calculatrice polonais inversé LO21
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Généré par Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Recherche');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="namespaces.html"><span>Espaces&#160;de&#160;nommage</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Recherche" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Membres&#160;de&#160;fichier</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">/home/yuntux/UTC/GI02/LO21/projet/projet_propre/calculatrice.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="calculatrice_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00014"></a>00014 <span class="preprocessor">#ifndef CALCULATRICE_H</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define CALCULATRICE_H</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &quot;<a class="code" href="pile_8h.html">pile.h</a>&quot;</span>
<a name="l00018"></a>00018 <span class="preprocessor">#include &quot;<a class="code" href="constante_8h.html" title="Calculatrice en polonais inversé. Classe composite de gestion des constantes.">constante.h</a>&quot;</span>
<a name="l00019"></a>00019 <span class="preprocessor">#include &quot;<a class="code" href="mainwindow_8h.html">mainwindow.h</a>&quot;</span>
<a name="l00020"></a>00020 <span class="preprocessor">#include &lt;QtGui&gt;</span>
<a name="l00021"></a>00021 
<a name="l00022"></a><a class="code" href="class_calculatrice.html">00022</a> <span class="keyword">class </span><a class="code" href="class_calculatrice.html">Calculatrice</a>
<a name="l00023"></a>00023 {
<a name="l00024"></a>00024     <span class="keyword">static</span> <a class="code" href="class_calculatrice.html">Calculatrice</a>* instance;
<a name="l00025"></a>00025 
<a name="l00026"></a>00026     <span class="keyword">enum</span> <a class="code" href="mainwindow_8h.html#ac57a15745dfbb2ebe6ba80230b7e5c6a">MesureAngle</a> _modAngle;
<a name="l00027"></a>00027     <span class="keyword">enum</span> <a class="code" href="constante_8h.html#a1d1cfd8ffb84e947f82999c682b666a7">Type</a> _modConstante;
<a name="l00028"></a>00028     <span class="keywordtype">bool</span> _modComplexe;
<a name="l00029"></a>00029 
<a name="l00030"></a>00030     QList&lt;Pile*&gt; Historique;
<a name="l00031"></a>00031     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> indice_pile_actuelle;
<a name="l00032"></a>00032 
<a name="l00033"></a>00033     QSettings* context;
<a name="l00034"></a>00034 
<a name="l00035"></a>00035 <span class="keyword">protected</span>:
<a name="l00036"></a>00036     <a class="code" href="class_calculatrice.html#a01b91f69f7ac10d737af66b3fa968db9" title="Constructeur de la calculatrice.">Calculatrice</a>();  <span class="comment">// à mettre dans la partie protected pour en interdire l&#39;utilisationv</span>
<a name="l00037"></a><a class="code" href="class_calculatrice.html#a2761ae6e08c02c2268ba5e499a013724">00037</a>     <a class="code" href="class_calculatrice.html#a2761ae6e08c02c2268ba5e499a013724">Calculatrice</a>(<span class="keyword">const</span> <a class="code" href="class_calculatrice.html">Calculatrice</a>&amp;){}
<a name="l00038"></a>00038     <span class="keyword">virtual</span> <a class="code" href="class_calculatrice.html#acb4b6278eb955ce932e16df29276be52" title="Dans un Singleton, nécessité d&#39;avoir une instante de type static.">~Calculatrice</a>(); <span class="comment">// à mettre dans la partie protected pour en interdire l&#39;utilisationv</span>
<a name="l00039"></a>00039     <span class="keywordtype">void</span> <a class="code" href="class_calculatrice.html#ad03d57208ee06d8ebef905efbbfec7b6">operator=</a>(<span class="keyword">const</span> <a class="code" href="class_calculatrice.html">Calculatrice</a> &amp;);  <span class="comment">// non défini mais à mettre dans la partie protected pour en interdire l&#39;utilisation</span>
<a name="l00040"></a>00040 <span class="keyword">public</span>:
<a name="l00041"></a>00041     <span class="keyword">static</span> <a class="code" href="class_calculatrice.html">Calculatrice</a>&amp; <a class="code" href="class_calculatrice.html#a6311c8e75ac47e9f43ecd47ebc22c10b">getInstance</a>();
<a name="l00042"></a>00042     <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_calculatrice.html#aa974f5b58c583ef3aaee055eac238466">libereInstance</a>();
<a name="l00043"></a>00043 
<a name="l00044"></a>00044     <span class="keywordtype">void</span> <a class="code" href="class_calculatrice.html#ae04068faaa66847c3f318c018824a277">annuler</a>();
<a name="l00045"></a>00045     <span class="keywordtype">void</span> <a class="code" href="class_calculatrice.html#ac9fea1beaab60d0c73c017a5d225a56c">retablir</a>();
<a name="l00046"></a><a class="code" href="class_calculatrice.html#abc998bdc47fd8e4388f2d8b03f1d9949">00046</a>     <a class="code" href="class_pile.html">Pile</a>* <a class="code" href="class_calculatrice.html#abc998bdc47fd8e4388f2d8b03f1d9949">getPileStockage</a>() {<span class="keywordflow">return</span> Historique[indice_pile_actuelle];}
<a name="l00047"></a><a class="code" href="class_calculatrice.html#a45ec794c15d65a56fb8101dd9ca4812b">00047</a>     <span class="keywordtype">int</span> <a class="code" href="class_calculatrice.html#a45ec794c15d65a56fb8101dd9ca4812b">taille_pile_hitorique</a>() {<span class="keywordflow">return</span> Historique.size();}
<a name="l00048"></a>00048     <span class="keywordtype">void</span> <a class="code" href="class_calculatrice.html#a3558f924d00e69cbfbfd7b1ee6b088a3">afficher_toutes_piles_hitorique</a>();
<a name="l00049"></a>00049 
<a name="l00050"></a>00050     <span class="keywordtype">void</span> <a class="code" href="class_calculatrice.html#acc6b301035c21041dbd4ffb7f6f5645e">saisie_nouvelle_pile</a>(<a class="code" href="class_pile.html">Pile</a>* nouvelle);
<a name="l00051"></a>00051 
<a name="l00052"></a><a class="code" href="class_calculatrice.html#af2b58ecc00a772e959e166645c802cf2">00052</a>     <span class="keyword">enum</span> <a class="code" href="mainwindow_8h.html#ac57a15745dfbb2ebe6ba80230b7e5c6a">MesureAngle</a> <a class="code" href="class_calculatrice.html#af2b58ecc00a772e959e166645c802cf2">getMesureAngle</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> _modAngle;}
<a name="l00053"></a><a class="code" href="class_calculatrice.html#a72d29725e5fdc334caf6b27d1b81221a">00053</a>     <span class="keyword">enum</span> <a class="code" href="constante_8h.html#a1d1cfd8ffb84e947f82999c682b666a7">Type</a> <a class="code" href="class_calculatrice.html#a72d29725e5fdc334caf6b27d1b81221a">getModConstante</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> _modConstante;}
<a name="l00054"></a><a class="code" href="class_calculatrice.html#ad5a63f289cc5df7ccc7677ada5ca92b8">00054</a>     <span class="keywordtype">bool</span> <a class="code" href="class_calculatrice.html#ad5a63f289cc5df7ccc7677ada5ca92b8">getModComplexe</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> _modComplexe;}
<a name="l00055"></a><a class="code" href="class_calculatrice.html#ac1fd3f178488afb8bc25dae790a9756d">00055</a>     QSettings* <a class="code" href="class_calculatrice.html#ac1fd3f178488afb8bc25dae790a9756d">getContext</a>() {<span class="keywordflow">return</span> context;}
<a name="l00056"></a><a class="code" href="class_calculatrice.html#a349cc6b05ea447fb0bde7221b560dab0">00056</a>     <span class="keywordtype">void</span> <a class="code" href="class_calculatrice.html#a349cc6b05ea447fb0bde7221b560dab0">setModConstante</a>(<span class="keyword">enum</span> <a class="code" href="constante_8h.html#a1d1cfd8ffb84e947f82999c682b666a7">Type</a> t){_modConstante = t;}
<a name="l00057"></a><a class="code" href="class_calculatrice.html#a51db82ce20ffafc4a6188b9f13b27fe1">00057</a>     <span class="keywordtype">void</span> <a class="code" href="class_calculatrice.html#a51db82ce20ffafc4a6188b9f13b27fe1">setMesureAngle</a>(<span class="keyword">enum</span> <a class="code" href="mainwindow_8h.html#ac57a15745dfbb2ebe6ba80230b7e5c6a">MesureAngle</a> a){_modAngle = a;}
<a name="l00058"></a><a class="code" href="class_calculatrice.html#ab5ad75216e44c3ca263c2706083def2b">00058</a>     <span class="keywordtype">void</span> <a class="code" href="class_calculatrice.html#ab5ad75216e44c3ca263c2706083def2b">setModComplexe</a>(<span class="keywordtype">bool</span> c){_modComplexe = c;}
<a name="l00059"></a>00059 };
<a name="l00060"></a>00060 
<a name="l00061"></a>00061 <span class="preprocessor">#endif // CALCULATRICE_H</span>
</pre></div></div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tout</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Espaces de nommage</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Fichiers</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Fonctions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Énumérations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Valeurs énumérées</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Généré le Samedi Juin 16 2012 23:51:37 pour Calculatrice polonais inversé LO21 par &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
